package com.fqgj.sentry.manage.service;


import com.fqgj.sentry.manage.entity.McRolePermissionEntity;

import java.util.List;

/**
 * Created by lpp kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-13 下午5:38
 */

public interface RolePermissionService {
    McRolePermissionEntity insert(McRolePermissionEntity rolePermissionEntity);

    Integer deleteByRoleId(Long roleId);

    List<McRolePermissionEntity> findListByRoleId(Long roleId);

    /**
     * 根据 rolesId 以逗号分开 查找用户权限
     *
     * @param rolesId
     * @return
     */
    List<McRolePermissionEntity> selectListByRolesId(String rolesId);
}
